﻿using Fonour.Domain.Entities;
using Fonour.Domain.IRespositories;

namespace Fonour.Application.UserApp
{
    public  class UserAppService:IUserAppService
    {
        private readonly IUserRepository _userRepository;

        public UserAppService(IUserRepository userRepository)
        {
            _userRepository = userRepository;
        }

        public User CheckUser(string userName, string password)
        {
            return _userRepository.CheckUser(userName, password);
        }
    }
}
